package com.cyys.modules.core.model;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@Data
public class ProgressEntity implements Serializable {

    private long readBytes = 0L; //到目前为止读取文件的比特数
    private long allBytes = 0L;    //文件总大小
    private int currentIndex;      //目前正在读取第几个文件


    @Override
    public String toString() {
        return "ProgressEntity{" +
                "readBytes=" + readBytes +
                ", allBytes=" + allBytes +
                ", currentIndex=" + currentIndex +
                '}';
    }
}